<?php
namespace app\common\model;
use think\Model;
class AdminRole extends Model
{
    protected $pk = 'id';
    protected $name = 'admin_role';
    public function Setting($name = '')
    {
        $data = [
            'id' => $this->pk,
            'table' => $this->name,
        ];
        if ($name) {
            return $data[$name];
        }
        return $data;
    }
}